
import { IAction, ICondition, IMovie } from "../../typings/interface";
import { movieActionEnums } from "./movieEnums";
// movie-action
export type delAction = IAction<movieActionEnums.DEL_MOVIE, string>
export type saveAction = IAction<movieActionEnums.SAVE_MOVIE, IMovie[]>
export type addAction = IAction<movieActionEnums.ADD_MOVIE, IMovie>
// loading-action
export type setLoadingAction = IAction<movieActionEnums.SET_LOADING, boolean>
// condition-action
export type setConditionAction = IAction<movieActionEnums.SET_CONDITION, ICondition>
// 可辨识的联合类型
export type movieActions = delAction | saveAction | addAction | setLoadingAction | setConditionAction